package extend;

public class Manager extends Employee{
    public double bonus;

    @Override
    public void work() {
        System.out.println("工作");
    }
    public static void main(String [] args){
        Manager m=new Manager();
        m.work();
        m.setName("wj");
        m.getName();
        m.setId(2);
        m.getId();
        m.setSalary(2000);
        m.getSalary();

        m.bonus=300;
        System.out.println( m.getName()+"\n"+m.getId()+"\n"+m.getSalary()+"\n"+ m.bonus);
    }
}
